import request from '@/utils/request'
// 根据id查询库位
export const findOneLocation = (params: string) =>
  request({
    url: '/location/' + params,
    method: 'get'
  })
// 新增库位
export const addLocation = (params: any) =>
  request({
    url: '/location',
    method: 'post',
    data: { ...params }
  })

// 修改库位
export const updateLocation = (params: any) =>
  request({
    url: '/location',
    method: 'put',
    data: { ...params }
  })
